<!--

    Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:jsf="http://xmlns.jcp.org/jsf" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <head jsf:id="head">
        <title>Putting it all together</title>
        <script jsf:target="body" jsf:name="js.js"/>
        <link jsf:name="css.css" rel="stylesheet" type="text/css" />
    </head>
    <body jsf:id="body">
        <form jsf:id="form" jsf:prependId="false">
           <p> 
               <label jsf:for="name">Name</label>
               <input jsf:id="name" type="text" jsf:value="#{complex.name}">
                 <f:ajax execute="@this" render="progress"/>
               </input> 
           </p>
           <p>
            <label jsf:for="tel">Tel</label>
            <input jsf:id="tel" type="tel" jsf:value="#{complex.tel}">
                <f:ajax execute="@this" render="progress"/>
            </input>
                </p>
                <p>
            <label jsf:for="email">Email</label>
            <input jsf:id="email" type="email" jsf:value="#{complex.email}">
                <f:ajax execute="@this" render="progress"/>
            </input>
                </p>
                <p>
            <label for="progress">Progress</label>
            <progress jsf:id="progress" max="3" value="#{complex.progress}" />
            </p>
        </form>
    </body>
</html>
